package com.citywithincity.pay;

import java.util.HashMap;
import java.util.Map;

public class PayUtil {
	/**
	 * 当下单成功的时候
	 * @param id
	 * @param fee
	 * @return
	 */
	public static Map<String, Object> onSubmitSuccess(Object id,double fee){
		Map<String, Object> map = new HashMap<String,Object>();
		map.put("order_id", id);
		map.put("fee", fee);
		return map;
	}
	
	public static Map<String, Object> onSubmitSuccess(Object id,int fee){
		Map<String, Object> map = new HashMap<String,Object>();
		map.put("order_id", id);
		map.put("fee", fee);
		return map;
	}
	
	public static Map<String, Object> onSubmitSuccess(Object id,int fee,String controllerKey){
		Map<String, Object> map = new HashMap<String,Object>();
		map.put("orderId", id);
		map.put("fee", fee);
		map.put("module", controllerKey);
		return map;
	}
}
